package wechat.start.wechatstart.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * Created by WuJiXian on 2020/12/5 8:36
 * 图文消息
 */
@Data
@XStreamAlias("xml")
public class NewsMessage extends BaseMessage {

    @XStreamAlias("ArticleCount")
    private Integer articleCount;
    @XStreamAlias("Articles")
    private List<Articles> articles;

    public NewsMessage(Map<String, String> requestMap, List<Articles> articles) {
        super(requestMap, "news");
        this.articleCount = articles.size();
        this.articles = articles;
    }
}
